/**
 * 
 */
package info.niwota.install;

import android.app.KeyguardManager;
import android.content.Context;

/**
 * @author qiangli
 * 
 */
public final class KeyguardUtil {
	/**
	 * 
	 */
	private KeyguardUtil() {
	}

	public static boolean isKeyguarded(Context ctx) {
		KeyguardManager km = (KeyguardManager) ctx
				.getSystemService(Context.KEYGUARD_SERVICE);
		return (km.inKeyguardRestrictedInputMode());
	}
}
